package com.my.mapper;

import com.my.bean.MoenyDetailed;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.my.bean.pojoVo.MoenyInfoPojo;
import com.my.bean.pojoVo.MoneyMoth;
import com.my.bean.pojoVo.moneyPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收费明细表   每个订单对应多个和明细表 Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-25
 */
public interface MoenyDetailedMapper extends BaseMapper<MoenyDetailed> {
    List<MoenyDetailed> selectMyPage(@Param("map") Map map);
    int countMyPage( @Param("map") Map map);


    List<moneyPojo> findMoenySum(@Param("map") Map map,@Param("areaid") long areaid,@Param("admin")boolean admin);
    int findMoenySumCount( @Param("map") Map map,@Param("areaid") long areaid,@Param("admin")boolean admin);

    List<MoenyInfoPojo> findMoenySumCountByHomeId(@Param("param")Long homeId,@Param("admin")boolean admin);
    //查询单数 月份 产康费用
    List<MoneyMoth> findMothSumSingular(   );
    //查询  月份 套餐费用
    List<MoneyMoth> findMothMea(   );
    //查询 月份 额外费用
    List<MoneyMoth> findMothEW(   );
}